Skip to content

Add SharedMountPoint to KVMs supported storage pool types#4780

Merged
nvazquez merged 2 commits intoapache:mainfrom
GutoVeronezi:add-shared-mount-point-to-kvm-supported-storage-pool-types
Aug 16, 2021
Merged

Add SharedMountPoint to KVMs supported storage pool types#4780
nvazquez merged 2 commits intoapache:mainfrom
GutoVeronezi:add-shared-mount-point-to-kvm-supported-storage-pool-types

Conversation

@GutoVeronezi
Copy link
Contributor

Description

ACS, with KVM, cannot migrate VM's volumes from a SharedMountPoint to a NFS storage pool properly; it will not copy the volumes's template to the destination storage pool (if needed), neither update the VM's XML properly.

From a SharedMountPoint to a NFS storage pool, ACS used to interpret that it would use localhost as the host of the storage system; as it is a shared mount point configured in all cluster's host, as server name, but NFS retrieves its path from KVM, so it needs to keep the same behavior as NFS to NFS.

This PR intends to enable migration between NFS <> ISCSI (via sharedmountpoint) in KVM.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

How Has This Been Tested?

It has been tested locally in a test lab.

  1. I created a VM;
  2. I configured 2 primary storages, 1 as NFS and 1 as SharedMountPoint;
  3. I tried to migrate VM (with migrateVirtualMachineWithVolume) from a SharedMountPoint to a NFS, but it threw a Exception due to incorrect path on VM's XML;

-- After appling this patch the migration works.

List<StoragePoolType> values = new ArrayList<>();

values.add(StoragePoolType.NetworkFilesystem);
values.add(StoragePoolType.SharedMountPoint);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this true for all hypervisors/storage backends? I know this is a new method only called from the KVMNonManaged, but that is not reflected in the name or protected by encapsulation. (genuine question)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually KVM is the only hypervisor that enables SharedMountPoint as an option, so it is true to all hypervisors that has it enabled.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm, ...

@GutoVeronezi
Copy link
Contributor Author

Can anyone review this?

1 similar comment
@GutoVeronezi
Copy link
Contributor Author

Can anyone review this?

Copy link
Member

@GabrielBrascher GabrielBrascher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 201

@GutoVeronezi GutoVeronezi marked this pull request as draft June 11, 2021 21:10
@blueorangutan
Copy link

Trillian test result (tid-920)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 59438 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t920-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 83 look OK, 5 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80 Error 538.65 test_internal_lb.py
test_04_rvpc_internallb_haproxy_stats_on_all_interfaces Error 280.41 test_internal_lb.py
test_03_vpc_privategw_restart_vpc_cleanup Failure 1041.13 test_privategw_acl.py
test_01_invalid_upgrade_kubernetes_cluster Failure 3612.99 test_kubernetes_clusters.py
test_02_deploy_and_upgrade_kubernetes_cluster Failure 3607.88 test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_cluster Failure 0.05 test_kubernetes_clusters.py
test_04_basic_lifecycle_kubernetes_cluster Failure 0.05 test_kubernetes_clusters.py
test_05_delete_kubernetes_cluster Failure 0.05 test_kubernetes_clusters.py
test_07_deploy_kubernetes_ha_cluster Failure 0.04 test_kubernetes_clusters.py
test_08_deploy_and_upgrade_kubernetes_ha_cluster Failure 0.04 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 0.04 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 98.09 test_kubernetes_clusters.py
test_02_isolate_network_FW_PF_default_routes_egress_false Failure 302.18 test_routers_network_ops.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 525.17 test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 526.33 test_vpc_redundant.py
test_05_rvpc_multi_tiers Failure 473.81 test_vpc_redundant.py
test_05_rvpc_multi_tiers Error 473.82 test_vpc_redundant.py

@GutoVeronezi GutoVeronezi marked this pull request as ready for review June 15, 2021 18:10
@yadvr
Copy link
Member

yadvr commented Jun 17, 2021

@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 260

@GutoVeronezi
Copy link
Contributor Author

@DaanHoogland @GabrielBrascher is there anything else to do?

@DaanHoogland
Copy link
Contributor

@GutoVeronezi no, just a test run that shows no regressions. I just started it.

@blueorangutan
Copy link

Trillian Build Failed (tid-1034)

@blueorangutan
Copy link

Trillian test result (tid-1063)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 34706 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t1063-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_supported_versions.py
Smoke tests completed. 88 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@blueorangutan
Copy link

Trillian test result (tid-1068)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 50300 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t1068-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_templates.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_snapshots.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 83 look OK, 5 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true Failure 348.48 test_routers_network_ops.py
test_01_volume_usage Failure 787.27 test_usage.py
test_10_attachAndDetach_iso Failure 1510.22 test_vm_life_cycle.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 539.08 test_vpc_redundant.py
test_05_rvpc_multi_tiers Failure 514.84 test_vpc_redundant.py
test_01_vpc_site2site_vpn_multiple_options Failure 670.27 test_vpc_vpn.py

@GutoVeronezi
Copy link
Contributor Author

@DaanHoogland any update about these tests results?

@DaanHoogland
Copy link
Contributor

@DaanHoogland any update about these tests results?

@GutoVeronezi sorry no, too much testing going on and it isn't even my main focus.

@GutoVeronezi
Copy link
Contributor Author

Any update about this?

@blueorangutan
Copy link

Packaging result: ✖️ el7 ✔️ el8 ✔️ debian. SL-JID 602

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 615

@blueorangutan
Copy link

Trillian test result (tid-1350)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 49986 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t1350-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_router_dhcphosts.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_service_offerings.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 86 look OK, 3 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_router_dhcphosts Failure 11.58 test_router_dhcphosts.py
ContextSuite context=TestRouterDHCPHosts>:teardown Error 20.85 test_router_dhcphosts.py
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true Failure 346.23 test_routers_network_ops.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 541.98 test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 475.82 test_vpc_redundant.py

@blueorangutan
Copy link

Trillian test result (tid-1359)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 33472 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t1359-kvm-centos7.zip
Smoke tests completed. 89 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@GutoVeronezi
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@GutoVeronezi a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 662

@blueorangutan
Copy link

Trillian test result (tid-1394)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 47859 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t1394-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 87 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_03_vpc_privategw_restart_vpc_cleanup Failure 380.22 test_privategw_acl.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 560.78 test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 548.82 test_vpc_redundant.py

@DaanHoogland
Copy link
Contributor

these errors seem consistent @GutoVeronezi . can you have a look?

@GutoVeronezi
Copy link
Contributor Author

@DaanHoogland could we run the tests one more time?

@GutoVeronezi
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@GutoVeronezi a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 816

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-1590)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 58538 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t1590-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_diagnostics.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_resource_accounting.py
Intermittent failure detected: /marvin/tests/smoke/test_routers.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_volumes.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_router_nics.py
Smoke tests completed. 85 look OK, 4 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_07_deploy_kubernetes_ha_cluster Failure 3627.77 test_kubernetes_clusters.py
test_08_deploy_and_upgrade_kubernetes_ha_cluster Failure 0.07 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 0.05 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 44.79 test_kubernetes_clusters.py
test_04_nonsecured_to_secured_vm_migration Error 467.06 test_vm_life_cycle.py
test_08_migrate_vm Error 0.04 test_vm_life_cycle.py
test_01_create_volume Failure 782.26 test_volumes.py
test_02_VPC_default_routes Failure 237.52 test_vpc_router_nics.py

@nvazquez
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-1646)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40976 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4780-t1646-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 89 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

Copy link
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nvazquez nvazquez merged commit 65a48dc into apache:main Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants